package com.zl.test;

import org.springframework.core.ResolvableType;
import org.springframework.stereotype.Service;

/**
 * @author ZLL
 * @date create in 2018/04/27
 */
public class SpringMain {

    public static void main(String[] args) {
        ResolvableType resolvableType = ResolvableType.forClass(ABServiceImpl.class);


        Class<?> resolve = resolvableType.as(Service.class).getGeneric(1).resolve();

        System.out.println(resolve.getName());
    }
}
